CC=g++
CFLAGS=-O0 -g3 -Wall
SOURCES=dispatcher.cpp vfile.cpp cm_net.cpp
SERVER=cmserver
CLIENT=cmclient
LOC=.
all: x.o
	$(CC) $(CFLAGS) $(LDFLAGS) *.o cmserver.cpp -o $(LOC)/cmserver
	$(CC) $(CFLAGS) $(LDFLAGS) *.o cmclient.cpp -o $(LOC)/cmclient

x.o:
	$(CC) -c $(CFLAGS) $(LDFLAGS) $(SOURCES)
	
test_udp:  x.o
	$(CC) $(CFLAGS) $(LDFLAGS) *.o UdpTestCli.cpp -o test_udp_client